      <select class="form-control" name="grade">
      <option value="">未分班</option>
          {% for i in grade %}
          <option {% if i.id == stu.g_id %} selected {% endif %} value="{{ i.id }}" >{{ i }}</option>
          {% endfor %}

     </select>